<h1>Pick a section to edit</h1>
<%if flash[:redrover_notice]%>
<p class= "info" ><%=flash[:redrover_notice] %> <p>
<%end%>
<%
    #The id of the UL that is going to hold the list of news, 
    # and is being updated by the ajax call every time a new section is created
    @update_id = "sections_list" 
 %>
 
<%=collapsable_panel(self.render(:partial => "new_section_panel", 
                                 :locals => {:update_id=>@update_id} ),
                                 'Create a new section','create_section_panel', 
                                 "display:none")%>

<h2>Sections in Issue <%=session[:issue].issue_number%>:</h2>

    <ul id= <%= @update_id %> >
        <%= render :partial => 'sections', :collection => @sections %>
    </ul>
